package Asgmt1.gameui.utils;

import java.awt.*;

public class ScreenUtil {
    /*
     * 获取屏幕宽度
     */
    public static int getScreenWidth(){
        return Toolkit.getDefaultToolkit().getScreenSize().width;
    }
    /*
     * 获取屏幕高度
     */
    public static int getScreenHeight(){
        return Toolkit.getDefaultToolkit().getScreenSize().height;
    }
}
